package com.neuedu.web;

import com.neuedu.pojo.CadreTable;
import com.neuedu.pojo.Result;
import com.neuedu.pojo.UserTable;
import com.neuedu.service.UserTableService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
@Tag(name = "用户管理")
public class UserController {
    @Resource
    private UserTableService userTableService;

    @PostMapping
    public Result<Void> addUserTable(@RequestBody UserTable userTable) {
        return this.userTableService.addUserTable(userTable);
    }
    @DeleteMapping
    public Result<Void> deleteUserTable(Integer id) {
        return this.userTableService.deleteUserTable(id);
    }
    @PutMapping
    public Result<Void> updateUserTable(@RequestBody UserTable userTable) {
        return this.userTableService.updateUserTable(userTable);
    }

}
